package com.pty.mainservice.mapper;

import com.pty.mainservice.model.User;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * Created by Empty on 2017/6/27.
 */
@Repository("userMapper")
public interface UserMapper {

    @Select("SELECT * from `t_user`  where id = #{id}")
    @ResultType(User.class)
    User selectByPrimaryKey(Integer id);
}